package net.lookyou.boot.demo.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import net.lookyou.boot.demo.common.BaseEntity;

import java.io.Serializable;

@Data
@TableName("sys_user_role")
@EqualsAndHashCode(callSuper = true)
public class SysUserRole extends BaseEntity<SysUserRole> {
    static final long serialVersionUID = 1L;

    @TableField("user_id")
    private Integer user_Id;

    @TableField("role_id")
    private Integer role_Id;

    @Override
    protected Serializable pkVal() {
        return this.getUser_Id();
    }
}
